/*
 * Created by: vadikv
 * Created: Monday, March 10, 2008
 */

using System;
using System.Collections.Generic;
using fit;
using OneDayModel.Tests.Fits.Fixtures.Definitions;
using TestUtils;

namespace OneDayModel.Tests.Fits.Fixtures.Query
{
    public class PendingConfirmationsQueryFixture : RowFixture
    {
        public override object[] query()
        {
            List<PendingConfirmationsDefinitionFixture> rawResult = new List<PendingConfirmationsDefinitionFixture>();
            DefinitionExplorer<PendingConfirmationsDefinitionFixture> pendingConfirmationsExplorer = 
                new DefinitionExplorer<PendingConfirmationsDefinitionFixture>();
            
            for (int i = 0; i < pendingConfirmationsExplorer.Count; i++)
                rawResult.Add(pendingConfirmationsExplorer[i]);
            
            return rawResult.ToArray();
        }

        public static IDictionary<string, IList<string>> GetPendingConfirmations()
        {
            return ContextManager.TestContext.FixedDefinitions[typeof(PendingConfirmationsDefinitionFixture).Name];
        }

        public override Type getTargetClass()
        {
            return typeof (PendingConfirmationsDefinitionFixture);
        }
    }
}